package com.zhs.gccs.http;

import java.io.File;


public class CommonCallback {

    public interface OnNetCallBack {
        void onDone(String result);

        void onFaile(Throwable t);
    }

    public interface OnMultiUploadCallBack extends OnNetCallBack{
        void onFileProgress(String filename, float percent);
    }

    public interface OnDoneCallBack {
        void onDone();

        void onFaile();
    }

    public interface OnDoneWithObjectCallBack {
        void onDone(Object object);

        void onFaile();
    }

    public interface OnReStartCallBack {
        void onReStart();

        void onFaile();
    }

    public interface OnProgressCallBack {
        void onProgress(float percent);

        void onDone(File file);

        void onFaile();
    }

    public interface OnProgressWithNameCallBack {
        void onProgress(String filename, float percent);
    }

    public interface OnTriggerCallBack{
        void onTrigger(Object object);
    }

    public interface OnResultCallBack{
        void onResult(String result);
    }
}
